package org.jeecg.modules.tls.blog.article.service;


import com.baomidou.mybatisplus.extension.service.IService;


import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.tls.blog.article.entity.AddArticleDto;
import org.jeecg.modules.tls.blog.article.entity.AddBlogDto;
import org.jeecg.modules.tls.blog.article.entity.BlogArticle;
import org.jeecg.modules.tls.blog.common.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @Description: blog_article
 * @Author: jeecg-boot
 * @Date:   2023-01-06
 * @Version: V1.0
 */
public interface IBlogArticleService extends IService<BlogArticle> {

    ResponseResult rencentBlogList();

    ResponseResult blogArticleList(Integer pageCount, Integer pageSize);

    ResponseResult blogArticleCategoryList(Integer pageCount, Integer pageSize, String categoryId);

    ResponseResult blogArticleTagList(Integer pageCount, Integer pageSize, String tagId);

    ResponseResult getArticleDetail(String id);

    ResponseResult addBlog(AddArticleDto articleDto) throws IOException;

    ResponseResult editBlog(AddArticleDto articleDto) throws IOException;

    ResponseResult blogSearch(Integer pageCount, Integer pageSize,String searchCondition);

    ResponseResult myBlog(Integer pageNum, Integer pageSize);

    Result<String> addAdminBlog(AddBlogDto addBlogDto);

    Result<String> editAdminBlog(AddBlogDto addBlogDto);
}
